/**
 * 
 */
package org.dse.dao;

import org.dse.beans.Webgraph;

/**
 * This class use Hibernate technology to implement additional methods the
 * WebgraphDAO has.
 * 
 * @author zhangchen
 * 
 */
public class WebgraphHibernateDAO extends
		GenericHibernateDAO<Webgraph, Integer> implements WebgraphDAO {

	/**
	 * Use SQL to delete all records in the webgraph table.
	 */
	public void deleteAll() {
		String sqlString = "delete from webgraph";

		getHibernateTemplate().getSessionFactory().getCurrentSession()
				.createSQLQuery(sqlString).executeUpdate();
	}
}
